﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="AddSMS.aspx.cs" Inherits="Admin_Default2" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="top-bar select-bar">
        <h1>
            <b>Add SMS </b>
        </h1>
        <asp:Label ID="lblmsg" Font-Bold="true" Width="100%" runat="server" BackColor="Red"
            ForeColor="White" EnableTheming="False"></asp:Label>
    </div>
    <br />
    <div >
        <table width="130%">
            <tr>
                <td>
                    <asp:Label ID="lblSubCategory" Font-Bold="true" runat="server" Text="Select Sub Category: "></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlSubCategory" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlSubCategory_SelectedIndexChanged" >
                        <asp:ListItem Text="------Select SMS Category------" Value="0"></asp:ListItem>
                      
                    </asp:DropDownList>
                </td>
                 <td>
                    <asp:Label ID="lblSMSLanguage" Font-Bold="true" runat="server" Text="SMS Language: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtSMSLanguage" runat="server" ></asp:TextBox>
                </td>
            </tr>
            
            <tr>
                <td>
                    <asp:Label ID="lblOwner" Font-Bold="true" runat="server" Text="Owner: "></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtOwner" runat="server" ></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lblSMS" Font-Bold="true" runat="server" Text="SMS : "></asp:Label>
                </td>
                <td>
                <FCKeditorV2:FCKeditor ID="FCKeditorSMS"  runat="server"   BasePath="~/fckeditor/" Width="200%" ></FCKeditorV2:FCKeditor>
                </td>
            </tr>
            <%-- <tr>
                <td>
                    <asp:Label ID="lblSMSLength" Font-Bold="true" runat="server" Text="SMS Length : "></asp:Label>
                </td>
                <td>
                     <asp:TextBox ID="txtSMSLength"  runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
             --%>
           
            <tr>
                <td>
                </td>
                <td align="right" >
                    <asp:Button ID="btnAddSMS" Width="15%" Font-Bold="true" OnClientClick="return ValidateAddSMS('ddlSubCategory','FCKeditorSMS','txtSMSLanguage','txtOwner')"
                        Text="Add" runat="server" onclick="btnAddSMS_Click" />
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div >
        <asp:GridView ID="grdSMS" Width="130%" runat="server" AutoGenerateColumns="false" ShowHeader="true">
            <Columns>
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        <asp:Label ID="lblSMSID" Text='<%# DataBinder.Eval(Container.DataItem,"SMSID")%>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="SMS">
                    <ItemTemplate>
                       <%# DataBinder.Eval(Container.DataItem,"SMS")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <%-- <asp:TemplateField HeaderText="Length">
                    <ItemTemplate>
                        <asp:Label ID="lblLength" tex="2011" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:TemplateField HeaderText="Language">
                    <ItemTemplate>
                        <asp:Label ID="lblLanguage" Text='<%# DataBinder.Eval(Container.DataItem,"SMSLanguage")%>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Owner">
                    <ItemTemplate>
                        <asp:Label ID="lblSMSOwner" Text='<%# DataBinder.Eval(Container.DataItem,"SMSOwner")%>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <%--<asp:CommandField ShowEditButton="True" />--%>
            </Columns>
            <AlternatingRowStyle BackColor="ButtonShadow" />
            <HeaderStyle BackColor="SpringGreen" />

        </asp:GridView>
    </div>
      
</asp:Content>

